package com.baizhi.entity;

import java.util.List;

public class Brand {
    //ID
    private Integer brandId;
    //品牌名字
    private String brandName;
    //手机数量
    private Integer brandSumPhone ;
    //品牌的多个手机
    private List<Phone> phone;

    @Override
    public String toString() {
        return "Brand{" +
                "brandId=" + brandId +
                ", brandName='" + brandName + '\'' +
                ", brandSumPhone=" + brandSumPhone +
                ", phone=" + phone +
                '}';
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public Integer getBrandSumPhone() {
        return brandSumPhone;
    }

    public void setBrandSumPhone(Integer brandSumPhone) {
        this.brandSumPhone = brandSumPhone;
    }

    public List<Phone> getPhone() {
        return phone;
    }

    public void setPhone(List<Phone> phone) {
        this.phone = phone;
    }

    public Brand(Integer brandId, String brandName, Integer brandSumPhone, List<Phone> phone) {
        this.brandId = brandId;
        this.brandName = brandName;
        this.brandSumPhone = brandSumPhone;
        this.phone = phone;
    }

    public Brand() {
    }
}
